package com.bc.bclocalserviceapihttp.controller;

//import com.bc.commonentity.common.JsonResult;
//import com.bc.bcapi.service.AlertService;
//import com.bc.bccontact.inter.IAlert;

import com.bc.bcapi.service.AlertService;
import com.bc.bcapi.service.T_FeedbackService;
import com.bc.bcmodel.domain.T_FeedbackModel;
import com.bc.commonentity.common.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.spring.web.json.Json;

@RestController
@RequestMapping("alert")
public class AlertController {
    private static final Logger LOGGER = LoggerFactory.getLogger(AlertController.class);
    @Autowired
    AlertService alertService;

    @Autowired
    T_FeedbackService t_feedbackService;

    @RequestMapping("heart")
    public JsonResult heart() {
        LOGGER.warn("测试日志输出");
        return alertService.heart();
    }

    @RequestMapping("testinsert")
    public JsonResult testInsert() {
        T_FeedbackModel m = new T_FeedbackModel();
        m.setQ_type("1");
        t_feedbackService.insert(m);
        return new JsonResult();
    }
}
